﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternDemoCApp.Creational.AbstractFactoryPattern.Classical
{
    /// <summary>
    /// 古典风格房屋工厂：ConcreteFactory
    /// </summary>
    public class ClassicalFactory : AbstractFactory
    {        
        public override Door CreateDoor()
        {
            Console.WriteLine("创建古典门");
            return new ClassicalDoor();
        }

        public override Floor CreateFloor()
        {
            Console.WriteLine("创建古典地板");
            return new ClassicalFloor();
        }

        public override Roof CreateRoof()
        {
            Console.WriteLine("创建古典房顶");
            return new ClassicalRoof();
        }

        public override Window CreateWindow()
        {
            Console.WriteLine("创建古典窗户");
            return new ClassicalWindow();
        }
    }
}
